package heap

import "JVM/Jvmgo/GoToJVM/classfile"

// 继承符号引用定义的结构
type ClassRef struct {
	SymRef
}

// 构造器
func newClassRef(cp *ConstantPool, classInfo *classfile.ConstantClassInfo) *ClassRef {
	ref := &ClassRef{}
	ref.cp = cp
	ref.className = classInfo.Name()
	return ref
}
